﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="HR_EmpList.aspx.cs" Inherits="ArtLand.OA.Project.HR.HR_EmpList" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <script src="../js/WebCommon.js"></script>
    <link href="../css/main.css" rel="stylesheet" />
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
        <ext:PageManager runat="server" ID="pang1" AutoSizePanelID="Grid1" />
        <ext:Grid runat="server" ID="Grid1" ShowBorder="false" Title="员工管理" AllowPaging="true" PageSize="12"
            EnableCheckBoxSelect="true" DataKeyNames="ID" OnRowDataBound="Grid1_RowDataBound"
            OnRowCommand="Grid1_RowCommand" IsDatabasePaging="true" OnPageIndexChange="Grid1_PageIndexChange"
            EnableRowNumber="True" EnableTextSelection="true" EnableColumnLines="true">
            <Toolbars>
                <ext:Toolbar>
                    <Items>
                        <ext:Button runat="server" ID="btnNew" Text="新增员工" Icon="Add"></ext:Button>
                        <ext:ToolbarSeparator ID="ToolbarSeparator1" runat="server">
                        </ext:ToolbarSeparator>
                        <ext:TwinTriggerBox ID="ttbxMyBox2" ShowLabel="false" OnTrigger1Click="ttbxMyBox2_Trigger1Click"
                            OnTrigger2Click="ttbxMyBox2_Trigger2Click" Trigger1Icon="Clear" ShowTrigger1="False"
                            EmptyText="请输入员工编号或员工姓名" Trigger2Icon="Search" runat="server" Width="180px">
                        </ext:TwinTriggerBox>
                    </Items>
                </ext:Toolbar>
            </Toolbars>
            <Columns>
                <ext:BoundField HeaderText="员工编号" DataField="EMPLID" />
                <ext:BoundField HeaderText="员工姓名" DataField="EMNAME" Width="65px" TextAlign="Center" />
                <ext:BoundField HeaderText="性别" DataField="EMPSEX" Width="40px" TextAlign="Center" />
                <ext:BoundField HeaderText="所属部门" DataField="DEPMET" />
                <ext:BoundField HeaderText="分公司" DataField="COMPAY" />
                <ext:BoundField HeaderText="邮箱" DataField="UEMAIL" />
                <ext:BoundField HeaderText="员工状态" DataField="StaffStatus" Width="80px" TextAlign="Center" />
                <ext:WindowField ColumnID="myWindowField" Width="60px" WindowID="Window1" Text="" DataTextFormatString="{0}" DataIFrameUrlFields="ID"
                    DataIFrameUrlFormatString="HR_EmpChange.aspx?empid={0}" Icon="ApplicationEdit" DataWindowTitleField="EMNAME"
                    DataWindowTitleFormatString="修改 - {0}" TextAlign="Center" HeaderText="修改" />
                <ext:BoundField DataField="ConID" HeaderText="合同情况" TextAlign="Center" Width="80px" />
                <ext:BoundField DataField="ID" HeaderText="薪资管理" TextAlign="Center" Width="80px" />
                <ext:BoundField DataField="ID" HeaderText="保险缴纳管理" TextAlign="Center" Width="100px" />
                <ext:LinkButtonField ConfirmText="你确定要这么做么？" ConfirmTarget="Top" Icon="Decline" ColumnID="ID"
                    Width="50px" CommandName="Del" TextAlign="Center" HeaderText="删除" />
                <ext:BoundField DataField="ConID" Hidden="true" />
                <ext:BoundField DataField="EMPLID" Hidden="true" />
            </Columns>
        </ext:Grid>
        <ext:Window ID="Window1" Title="编辑" Popup="false" EnableIFrame="true" runat="server"
            CloseAction="HidePostBack" EnableConfirmOnClose="true" IFrameUrl="about:blank"
            Target="Top" IsModal="True" Width="950px" Height="470px">
        </ext:Window>
        <ext:Window ID="Window2" Title="编辑" Popup="false" EnableIFrame="true" runat="server"
            CloseAction="HidePostBack" EnableConfirmOnClose="true" IFrameUrl="about:blank"
            Target="Top" IsModal="True" Width="800px" Height="430px">
        </ext:Window>

        <ext:Window ID="Window3" Title="编辑" Popup="false" EnableIFrame="true" runat="server"
            CloseAction="HidePostBack" EnableConfirmOnClose="true" IFrameUrl="about:blank"
            Target="Top" IsModal="True" Width="500px" Height="350px">
        </ext:Window>

    </form>
    <script src="../js/extgridbug.js"></script>
</body>
</html>
